package servertester;

import java.io.IOException;
import java.util.List;
import org.restlet.resource.ClientResource;


public class Main {
    public static void main(String[] args) throws IOException {
        ClientResource resource = new ClientResource("http://localhost:8182/station");
        BusLib.ObjectList stations = resource.get(BusLib.ObjectList.class);

        List<BusLib.StationInfo> list = (List<BusLib.StationInfo>)stations.getList();
        for(BusLib.StationInfo s : list) {
            System.out.println(s.Name());
        }
    }

}
